package com.admin.socketmultiplayer.fragment

import android.os.Bundle
import android.support.v4.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup

/**
 * Created by 吴昶 on 2018/5/14.
 */
abstract class BaseFragment :Fragment(){

    var fview:View?=null

    override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View? {
        fview=inflater.inflate(bindLayout(),null)
        initData()
        initEvent()
        return fview
    }

    abstract fun bindLayout():Int

    abstract fun initData()

    abstract fun initEvent()

}